package oop.core.med;
import oop.core.map.*;
import oop.core.entity.*;
import java.util.*;

/**
 * This class is meant for CollisionDetection for 
 * 
 *
 */

public class BattleCollisionDetection 
{
	//I'm not sure what the size of the map is
	//so i'm making some default value
	//once I found out what it is, i'll change it
	//Hoang Le
	private static final int X = 100;
	private static final int Y = 100;
	private ArrayList<Entity> entitiesList;
	//Need an list of skill objects, and these objects NEEDS locations
	boolean[][] collisionMap;	
	
	public BattleCollisionDetection(ArrayList<Entity> entitiesList)
	{
		this.entitiesList = entitiesList;
		collisionMap = new boolean[X][Y];
		for (int i = 0; i < X; i++)
		{
			for (int j = 0; j < X; j++)
			{
				collisionMap[i][j] = false;
			}
		}
	}
	
	public void update()
	{
		Iterator iter = entitiesList.iterator();
		//needs iterator for the list of skillObjects
		while(iter.hasNext())
		{
			//mark on the boolean grid true
			//then use the other iterator to check for collision
			//if happens, do damage or do something
		}
		//Keep updating every clock, this will be put into the loop
		
	}
	
	

}
